<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>

<body>
<script>


var s1 = "abc";
var s2 = "123";
var r = /\w+|\d+/;			// 选择重复字符类
var b1 = r.test(s1); 		// 返回true
var b2 = r.test(s2); 		// 返回true


</script>
</body>
</html>
